package edu.xmut.decorator.example;

/**
 * @author 朔风
 * @date 2024-02-27 17:57
 */
public class Client {
    public static void main(String[] args) {
        Person person = new Person("tj");
        Sneaker sneaker = new Sneaker();
        sneaker.decorate(person);

        TShirts tShirts = new TShirts();
        tShirts.decorate(sneaker);

        Tie tie = new Tie();
        tie.decorate(tShirts);

        Suit suit = new Suit();
        suit.decorate(tie);

        // 执行形象展示
        suit.show();
    }
}
